# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-uritools
_pyname=uritools
pkgver=4.0.2
pkgrel=0
pkgdesc="Python functions for URI parsing, classification, and composition"
url="https://github.com/tkem/uritools"
license="MIT"
arch="noarch"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/tkem/uritools/archive/v$pkgver/uritools-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD"/build/lib pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
74ebcb656586a2c8b4fc179dd94754915242c077520fdd8f3abf862646de502148c580746ebdc11a138991fdabbf7f6fcf84c73f9ab191e7241ec077744bb40e  uritools-4.0.2.tar.gz
"
